(function () {

	var iShopId = page.url.get('id');
	var $modal = $('#pop-modal');

	getPageData ({
		id:iShopId
	});

	function getPageData (Filter)
	 {
	 	var Filter = Filter;

	 		getJson(Domain+'/ec/usedTradingBase/doFinTradingBase.do', Filter, function (res) {

		  if(!res.success){
	
		    $('.am-modal-bd').text(res.errorMessage);
				$modal.modal();
				setTimeout(function () {
					$modal.modal('close');
				},iWiating);
				return;

		  }
		  else{

	  	 	if(!res.success){
	
		    $('.am-modal-bd').text(res.errorMessage);
				$modal.modal();
				setTimeout(function () {
					$modal.modal('close');
				},iWiating);
				return;

		  }
		  else{

		  	setTimeout(function () {
		  		console.log($('#shopinfos').length);
		  	},3000);
		  		

			 renderTmp('#shopinfos','shopinfostpl',res);

		  }

		  }
		},function (error) {

			$('.am-modal-bd').text(language.ajaxFailed);
							$modal.modal();
						setTimeout(function () {
							$modal.modal('close');
						},iWiating);

		})
	 }
})()

